
public class Constant {

	/**
	 * 总镶嵌孔数
	 */
	public static int TOTAL_HOLE_NUMBER = 21;
	
	public static int FORMER_WIN_COMBINATION = 0;		// 前者镶嵌组合胜
	
	public static int LATER_WIN_COMBINATION = 1;		// 后者镶嵌组合胜
	
	public static int FORMER_BETTER_COMBINATION = 2;	// 两者镶嵌组合平，前者优
	
	public static int LATER_BETTER_COMBINATION = 3;		// 两者镶嵌组合平，后者优
	
	/**
	 * 
	 * @param attack
	 * 				己方攻击
	 * @param otherDefense
	 * 				对方防御
	 * @param otherAttack
	 * 				对方攻击
	 * @return
	 */
	public static int figureDamage(int attack, int otherDefense, int otherAttack) {
		return (int) ((attack / 4 * attack / 4) / ((otherDefense / 4) * 0.8 + (otherAttack / 4) * 0.2));
	}
}
